Python  pip 설치 lxml 오류 해결 방법

7056 단어 Pythonpip
Python  pip 설치 lxml 오류 해결 방법
1.  pip 를 사용 하여 lxml 를 설치 하 는 중 오류 가 발생 했 습 니 다:
   >>> pip install lxml

C:\Users\Chen>pip install lxml 
Collecting lxml 
 Using cached lxml-3.5.0.tar.gz 
Installing collected packages: lxml 
 Running setup.py install for lxml ... error 
  Complete output from command "d:\program files\python\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\CHENJU~1\\AppData\\Local\\Temp\\pip-build-id5180h6\\lxml\\setup.py'; 
  Building lxml version 3.5.0. 
  Building without Cython. 
  ERROR: b"'xslt-config' \xb2\xbb\xca\xc7\xc4\xda\xb2\xbf\xbb\xf2\xcd\xe2\xb2\xbf\xc3\xfc\xc1\xee\xa3\xac\xd2\xb2\xb2\xbb\xca\xc7\xbf\xc9\xd4\xcb\xd0\xd0\xb5\xc4\xb3\xcc\xd0\xf2\r
\xbb\xf2\xc ** make sure the development packages of libxml2 and libxslt are installed ** Using build configuration of libxslt running install running build running build_py creating build creating build\lib.win32-3.5 creating build\lib.win32-3.5\lxml copying src\lxml\builder.py -> build\lib.win32-3.5\lxml copying src\lxml\cssselect.py -> build\lib.win32-3.5\lxml copying src\lxml\doctestcompare.py -> build\lib.win32-3.5\lxml copying src\lxml\ElementInclude.py -> build\lib.win32-3.5\lxml copying src\lxml\pyclasslookup.py -> build\lib.win32-3.5\lxml copying src\lxml\sax.py -> build\lib.win32-3.5\lxml copying src\lxml\usedoctest.py -> build\lib.win32-3.5\lxml copying src\lxml\_elementpath.py -> build\lib.win32-3.5\lxml copying src\lxml\__init__.py -> build\lib.win32-3.5\lxml creating build\lib.win32-3.5\lxml\includes copying src\lxml\includes\__init__.py -> build\lib.win32-3.5\lxml\includes creating build\lib.win32-3.5\lxml\html copying src\lxml\html\builder.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\clean.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\defs.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\diff.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\ElementSoup.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\formfill.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\html5parser.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\soupparser.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\usedoctest.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\_diffcommand.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\_html5builder.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\_setmixin.py -> build\lib.win32-3.5\lxml\html copying src\lxml\html\__init__.py -> build\lib.win32-3.5\lxml\html creating build\lib.win32-3.5\lxml\isoschematron copying src\lxml\isoschematron\__init__.py -> build\lib.win32-3.5\lxml\isoschematron copying src\lxml\lxml.etree.h -> build\lib.win32-3.5\lxml copying src\lxml\lxml.etree_api.h -> build\lib.win32-3.5\lxml copying src\lxml\includes\c14n.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\config.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\relaxng.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\schematron.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\tree.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\uri.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\xinclude.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\xpath.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\xslt.pxd -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\etree_defs.h -> build\lib.win32-3.5\lxml\includes copying src\lxml\includes\lxml-version.h -> build\lib.win32-3.5\lxml\includes creating build\lib.win32-3.5\lxml\isoschematron\resources creating build\lib.win32-3.5\lxml\isoschematron\resources\rng copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-3.5\lxml\isoschematron\resources\rng creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 running build_ext building 'lxml.etree' extension error: Unable to find vcvarsall.bat ----------------------------------------
2.  Baidu 문제 해결 방법 보기:
    원래 이 문 제 는 운영 체 제 를 구분 하여 각각 처리 해 야 한다.window 아래 에 서 는 아직 언급 되 지 않 았 습 니 다.
3.  Linux 시스템 의 처리 방식:

sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev 
   or yum install .....
   그리고 pip install lxml 을 계속 사용 합 니 다.
읽 어 주 셔 서 감사합니다. 여러분 에 게 도움 이 되 기 를 바 랍 니 다.본 사이트 에 대한 여러분 의 지지 에 감 사 드 립 니 다!

좋은 웹페이지 즐겨찾기